package cn.zc.student.entity;

import cn.tools.core.base.entity.SuperEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
public class Role extends SuperEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租户号
     */
    @TableField("TENANT_ID")
    private String tenantId;

    /**
     * 乐观锁
     */
    private String version;


    @TableLogic
    private Integer deleted;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;


    private String userId;

    private String userAuthority;
}
